package com.web.common.basic.elasticsearch.entity;

import java.util.Map;

import javax.validation.constraints.NotBlank;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Schema(title = "Elasticsearch请求自定义参数", description = "Elasticsearch请求自定义参数")
public class ElasticParam {

	/** 请求的方法 */
	@NotBlank(message = "未填写请求方式")
	@Schema(title = "请求的方式", allowableValues = {"GET", "POST", "PUT", "DELETE"})
	private String method;
	
	/** 请求地址 */
	@NotBlank(message = "未填写请求地址")
	@Schema(title = "请求地址")
	private String endpoint;
	
	/** 请求json数据 */
	@Schema(title = "请求json数据")
	private String jsonEntity;
	
	/** 请求的参数 */
	@Schema(title = "请求的参数")
	private Map<String, String> parameters;
}
